<template>
	<view class="container">
	

		<view class="content">
			<u-form labelPosition="left" labelWidth="82" :model="prolist" >
				<!-- 部门 -->
				<u-form-item label="操作人:" >
					<u-input v-model="loglist.username"  disabled />
				</u-form-item>
				<!-- 名称 -->
				<u-form-item label="操作标题:" >
					<u-input v-model="loglist.title"  disabled />
				</u-form-item>
				<u-form-item label="操作时间:" >
					<u-input v-model="loglist.createtime_text" disabled />
				</u-form-item>
			
				<u-form-item label="设备类型:" >
					<u-input v-model="loglist.model" disabled  />
				</u-form-item>

				<u-form-item label="ip:" >
					<u-input v-model="loglist.ip" disabled  />
				</u-form-item>

				
				<!-- 商品描述 -->
				<u-form-item label="操作内容:" prop="description" borderBottom>
					<u-textarea  v-model="loglist.title" count disabled></u-textarea>
				</u-form-item>

			
			
				
			</u-form>

		</view>
		<!-- 消息提醒 -->
		<u-toast ref="notice"></u-toast>
	</view>
</template>
  
<script>
export default {
	onLoad(options) {

		this.empid = options.empid ? options.empid : 0

		this.auth = this.$u.auth.check();

        this.list()

	},


	created() {

		this.timer = setInterval(() => {

			let a = this.$u.count.check()
			// console.log(a)

		}, 15000);

	},
	beforeDestroy() {
		clearInterval(this.timer)
	},
	data() {
		return {
			empid:0,
			auth: {},
            loglist:[]
			
	

	

		};
	},

	methods: {

		async wc_order() {

			let data = {
				orderid:this.orderid,
				status:3,
				adminid:this.auth.id
			}
			let result = await this.$u.api.booking.complateorder(data)

				if (result.code) {
					this.$refs.notice.show({
						type: "success",
						message: result.msg,
						duration: 1000,
						complete: () => {
							//返回上一个界面
							uni.reLaunch({
								url: "/pages/product/booking/index"
							})

						}
					});
				} else {
					this.$refs.notice.show({
						type: "danger",
						message: result.msg,
						duration: 2000,

					});
				}
			
				



		},
		async list()
		{
			let data = {
				empid:this.empid,
				adminid:this.auth.id
			}
			let result = await this.$u.api.admin.find(data)

			if(result.code)
			{
				this.loglist = result.data
			}else
			{
				this.$refs.notice.show({
					type:"danger",
					message:result.msg,
					duration:2000
				})
			}
		}
	
	

	},
};
</script>
  
<style >
.content {
	padding: 20px;
}

.container {
	height: 100%;
	margin: 0 50rpx;
	box-sizing: border-box;
}

.xcx {
	width: 200rpx;
	height: 200rpx;
	margin: 80rpx auto 40rpx;
	border-radius: 100%;
	overflow: hidden;
}

.nickname {
	font-size: 14px;
	text-align: center;
}

.title {
	text-align: center;
	margin: 40rpx 0;
	font-size: 14rpx;
}

.avatar .u-upload {
	justify-content: center;
	align-items: center;
	margin: 3em auto;
}
</style>
  